﻿using System.ComponentModel;
using System.Windows.Forms;
namespace WenSkin.Controls
{
    public class WenColumnHeader : ColumnHeader
    {
        public WenColumnHeader() : base()
        {
            CloumnName = "CloumnName";
            Width = 100;
        }

        #region 私有属性

        #endregion

        [DefaultValue("CloumnName")]
        public string CloumnName { get; set; }

        [DefaultValue(100)]
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
        public new int Width { get => base.Width; set => base.Width = value; }
        public override string ToString()
        {
            return string.Format("{0}({1})", Text, CloumnName);
        }
    }
}
